package com.andy.sqlSession;

import com.andy.pojo.Configuration;
import com.andy.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    public <E> List<E> query(Configuration configuration,MappedStatement mappedStatement,Object[] param) throws Exception;

    public int update(Configuration configuration,MappedStatement mappedStatement,Object[] param) throws Exception;

    void close() throws SQLException;
}
